//
//  UIView+Coord.h
//  LQCommonTools
//
//  Created by Fun Tech on 2017/10/30.
//  Copyright © 2017年 Leslie. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Coord)

/**
 *  view的x(横)坐标
 */
@property (nonatomic, assign)CGFloat v_x;

/**
 *  view的y(纵)坐标
 */
@property (nonatomic, assign)CGFloat v_y;
/**
 *  view的宽度
 */
@property (nonatomic, assign)CGFloat v_w;
/**
 *  view的高度
 */
@property (nonatomic, assign)CGFloat v_h;
/**
 *  view的中心横坐标
 */
@property (nonatomic, assign)CGFloat v_centerX;
/**
 *  view的中心纵坐标
 */
@property (nonatomic, assign)CGFloat v_centerY;

/**
 *  view的MaxX
 */
@property (nonatomic, assign)CGFloat v_MaxX;
/**
 *  view的MaxY
 */
@property (nonatomic, assign)CGFloat v_MaxY;

/// 设置多个view与调用者底部相等
- (void)j_setBottomsEqualToMe:(NSArray <UIView *> *)views;

/// 设置多个view与调用者顶部相等
- (void)j_setTopsEqualToMe:(NSArray <UIView *> *)views;

/// 设置多个view与调用者左边相等
- (void)j_setLeftsEqualToMe:(NSArray <UIView *> *)views;

/// 设置多个view与调用者右边相等
- (void)j_setRightsEqualToMe:(NSArray <UIView *> *)views;

/// 设置多个view与调用者水平中心点相等
- (void)j_setHorizontalsEqualToMe:(NSArray <UIView *> *)views;

/// 设置多个view与调用者垂直中心点相等
- (void)j_setVerticalsEqualToMe:(NSArray <UIView *> *)views;

/// 设置view基于父视图垂直居中
- (void)j_fitVerticalCenterInView:(UIView *)view;

/// 设置view基于父视图水平居中
- (void)j_fitHorizontalCenterInView:(UIView *)view;


/// 设置锚点
- (void)j_setAnchorPoint:(CGPoint)anchorPoint;

@end
